package com.wlyuan.open.validation.constraints;

import com.wlyuan.open.validation.vaidators.SmsSendValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * @author lijing
 * @description
 */
@Target({FIELD, METHOD, PARAMETER, TYPE})
@Retention(RUNTIME)
@Constraint(validatedBy = {SmsSendValidator.class})
@Documented
public @interface SmsSend {

    String message() default "{message}";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}

